package com.maozw.bytecode.assist;

import javassist.ClassPool;
import javassist.CtClass;
import javassist.NotFoundException;

/**
 * @author MAOZW
 * @Description: ${todo}
 * @date 2018/7/27 18:06
 */
public class _Main {

    public static void main(String[] args) {

        ClassPool classPool = ClassPool.getDefault();
        System.out.println("-javaagent:D:\\data\\baiduyun\\creditnet-cloud-parent\\base-agent\\target\\my-agent.jar=first");

        test1();
        test2();
        try {
            CtClass ctClass = classPool.get("com.maozw.bytecode.assist.UserService");

        } catch (NotFoundException e) {
            e.printStackTrace();
        }
    }

    public static void test1(){
        System.out.println("test1");
    }

    public static void test2(){
        System.out.println("test2");

    }
}
